<!DOCTYPE html>
<html>
<meta charset="utf-8">
<title>科鹏机电</title>
<head th:include="include :: header"></head>
<link href="/css/layui.css" rel="stylesheet">
<body>
<div class="layui-tab" lay-filter="demo" lay-allowclose="true">
	<ul class="layui-tab-title">
		<li class="layui-this">项目信息</li>
		<li>文件信息</li>
		<li>修改日志</li>
	</ul>
	<div class="layui-tab-content"></div>
</div>


<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
	<ul class="layui-tab-title">
		<li class="layui-this">项目信息</li>
		<li>文件信息</li>
		<li>修改日志</li>
	</ul>
	<div class="layui-tab-content">
		<div class="layui-tab-item layui-show">
			<div class="wrapper wrapper-content ">
				<div class="row">
					<div class="col-sm-12">
						<div class="ibox float-e-margins">
							<div class="ibox-content">
								<form class="form-horizontal m-t" id="signupForm">
									<input id="id" name="id" th:value="${project.id}"  type="hidden">
									<div class="form-group">
										<label class="col-sm-2 control-label">项目名称：</label>
										<div class="col-sm-4">
											<input id="name" name="name" class="form-control" type="text"  th:value="${project.name}">
										</div>
										<label class="col-sm-2 control-label">项目编号：</label>
										<div class="col-sm-4">
											<input id="itmNumber" name="itmNumber" class="form-control" type="text" th:value="${project.itmNumber}" readonly>
										</div>
									</div>
									<div class="form-group">
										<label class="col-sm-2 control-label">项目类型：</label>
										<div class="col-sm-4">
											<select data-placeholder="--选择类型--" name="itmProTypeid" id="itmProTypeid"
													class="form-control" tabindex="2" required>
												<option value="">--选择类型--</option>
												<option th:each="projecttype:${projecttypeList}" th:value="${projecttype.id}"
														th:text="${projecttype.name}"
														th:selected="${project.itmProTypeid} == ${projecttype.id}"></option>
											</select>
										</div>
										<label class="col-sm-2 control-label">项目阶段：</label>
										<div class="col-sm-4">
											<select data-placeholder="--选择阶段--" name="status" id="status"
													class="form-control" tabindex="2" readonly="true">
												<option th:each="dictstatus:${dictstatusList}" th:value="${dictstatus.value}" th:text="${dictstatus.name}"
														th:selected="${project.status} == ${dictstatus.value}"></option>
											</select>
										</div>
									</div>
									<div class="form-group">
										<label class="col-sm-2 control-label">项目负责人：</label>
										<div class="col-sm-4">
											<select data-placeholder="--选择负责人--" name="itmManagerId" id="itmManagerId"
													class="form-control" tabindex="2" required>
												<option value="">--选择负责人--</option>
												<option th:each="user:${userList}" th:value="${user.userId}" th:text="${user.name}"
														th:selected="${project.itmManagerId} == ${user.userId}"></option>
											</select>
										</div>
										<label class="col-sm-2 control-label">业务部门：</label>
										<div class="col-sm-4">
											<select data-placeholder="--选择部门--" name="deptId" id="deptId"
													class="form-control" tabindex="2" required>
												<option value="">--选择部门--</option>
												<option th:each="dept:${deptList}" th:value="${dept.deptId}" th:text="${dept.name}"
														th:selected="${project.deptId} == ${dept.deptId}"></option>
											</select>
										</div>
									</div>

									<div class="form-group">
										<label class="col-sm-2 control-label">项目来源：</label>
										<div class="col-sm-4">
											<!--									<input id="itmSource" name="itmSource" class="form-control" type="text">-->
											<select data-placeholder="--选择来源--" name="itmSource" id="itmSource"
													class="form-control" tabindex="2" required>
												<option value="">--选择来源--</option>
												<option th:each="dictSource:${dictSourceList}" th:value="${dictSource.value}" th:text="${dictSource.name}"
														th:selected="${project.itmSource} == ${dictSource.value}"></option>
											</select>
										</div>
										<label class="col-sm-2 control-label">项目等级：</label>
										<div class="col-sm-4">
											<select data-placeholder="--项目等级--" name="itmGrade" id="itmGrade"
													class="form-control" tabindex="2" required>
												<option value="">--项目等级--</option>
												<option value="1" th:selected="1 == ${project.itmGrade}">A级</option>
												<option value="2" th:selected="2 == ${project.itmGrade}">B级</option>
												<option value="3" th:selected="3 == ${project.itmGrade}">C级</option>
											</select>
										</div>
									</div>
									<div class="form-group">
										<label class="col-sm-2 control-label">项目模式：</label>
										<div class="col-sm-4">
											<select data-placeholder="--项目模式--" name="itmModel" id="itmModel"
													class="form-control" tabindex="2" required>
												<option value="">--项目模式--</option>
												<option value="1" th:selected="1 == ${project.itmModel}">设备</option>
												<option value="2" th:selected="2 == ${project.itmModel}">运营</option>
											</select>
										</div>
										<label class="col-sm-2 control-label">拟承接部位：</label>
										<div class="col-sm-4">
											<input id="itmDecSite" name="itmDecSite" class="form-control" type="text" th:value="${project.itmDecSite}">
										</div>
									</div>
									<div class="form-group">
										<label class="col-sm-2 control-label">客户名称：</label>
										<div class="col-sm-4">
											<input id="custName" name="custName" class="form-control" type="text" th:value="${project.custName}">
										</div>
										<label class="col-sm-2 control-label">施工公司：</label>
										<div class="col-sm-4">
											<select data-placeholder="--选择施工公司--" name="complanyId" id="complanyId"
													class="form-control chosen-select-complanyId" tabindex="2" required>
												<option value="">--选择施工公司--</option>
												<option th:each="companyDO:${companyDOList}" th:value="${companyDO.id}" th:text="${companyDO.name}"
														th:selected="${project.complanyId} == ${companyDO.id}"></option>
											</select>
										</div>
									</div>
									<div class="form-group">
										<label class="col-sm-2 control-label">项目地址：</label>
										<div class="col-sm-10">
											<textarea id="itmAddress" name="itmAddress" class="form-control" th:text="${project.itmAddress}"></textarea>
										</div>
									</div>
									<div class="form-group">
										<label class="col-sm-2 control-label">项目说明：</label>
										<div class="col-sm-10">
											<textarea id="itmRemark" name="itmRemark" class="form-control" th:text="${project.itmRemark}"></textarea>
										</div>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="layui-tab-item">内容2</div>
		<div class="layui-tab-item">内容3</div>
	</div>
</div>
<div th:include="include::footer"></div>
<script src="/js/layui.js"></script>
<script>
	var id = $("#id").val()
	console.log(id,"内容1");
	layui.use(['element'], function () {
		var $ = layui.jquery;
		var element = layui.element;
		//选项卡操作
		$('.site-demo-active').on('click', function(){
			var othis = $(this), type = othis.data('type');
			active[type] ? active[type].call(this, othis) : '';
			console.log(othis,"othis");
			console.log(type,"type");
			console.log(othis.data('index'),"index");
		});

		element.on('tab(outNav)', function(data){
			var src=$(".layui-tab-item.layui-show").find("iframe").attr("src");
			$(".layui-tab-item.layui-show").find("iframe").attr("src",src);
		});
	});
</script>
</body>
</html>
